<template>
  <div class="box">sonb</div>
</template>

<script>
export default {
  mounted() {
    this.$bus.$on('atob', (res) => {
      console.log(res)
    })
  },
  beforeDestroy() {
    this.$bus.$off('atob')
  }
}
</script>

<style lang="scss" scoped>
.box {
  width: 200px;
  height: 300px;
  border: solid 1px green;
}
</style>
